public class Person {
    private int age;

    public void setAge(int age) {
        if (age >= 0 && age <= 150) {
            this.age = age;
        } else {
            System.out.println("Invalid age. Age must be between 0 and 150.");
        }
    }
    public int getAge() {
        return age;
    }
    public static void main(String[] args) {
        Person person = new Person();
        person.setAge(25);
        System.out.println("Person's age is: " + person.getAge());
        person.setAge(-1);
        System.out.println("Person's age is: " + person.getAge());
        person.setAge(100);
        System.out.println("Person's age is: " + person.getAge());
    }
}